package com.runfast.paotui.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.paotui.dao.mapper.RunfastShopperMapper;
import com.runfast.paotui.dao.model.RunfastShopper;
import com.runfast.paotui.dao.model.RunfastShopperExample;
import com.runfast.paotui.service.RunfastShopperService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class RunfastShopperServiceImpl extends BaseService<RunfastShopper, Integer, RunfastShopperExample> implements RunfastShopperService {
    @Resource
    RunfastShopperMapper dao;

    @Override
    public void deteleshopper(Integer id) {
        dao.deteleshopper(id);
    }

    @Override
    public List<Map<String, Object>> findbyGoods() {
        return dao.findbyGoods();
    }

    @Override
    public RunfastShopper findByUserName(String userName) {
        return dao.findByUserName(userName);
    }

    @Override
    public RunfastShopper findByidnumber(String idNumber) {
        return dao.findByidnumber(idNumber);
    }

    @Override
    public void update(RunfastShopper shopper) {
        dao.update(shopper);
    }

    @Override
    public List<RunfastShopper> findByAll() {
        return dao.findByAll();
    }

    @Override
    public RunfastShopper findByNumeber(String munber) {
        return dao.findByNumeber(munber);
    }

    @Override
    public void updateNumber(RunfastShopper shopper) {
        dao.updateNumber(shopper);
    }

    @Override
    public RunfastShopper get(Integer id) {
        return dao.get(id);
    }

    @Override
    public List<Map<String, Object>> countShopperIncome(String key, Date startTime, Date endTime, Integer page, Integer pageSize, Integer tAccounts) {
        return dao.countShopperIncome(key,startTime,endTime,page,pageSize,tAccounts);
    }

    @Override
    public Integer getShopperCount() {
        return dao.getShopperCount();
    }



    @Override
    public List<RunfastShopper> findByCreditLevelid(Integer creditLevelid) {
        return dao.findByCreditLevelid(creditLevelid);
    }

    @Override
    public void updatepassword(RunfastShopper shopper) {
        dao.updatepassword(shopper);
    }

    @Override
    public void updateAlias(RunfastShopper shopper) {
        dao.updateAlias(shopper);
    }

    @Override
    public void updateUserName(RunfastShopper shopper) {
        dao.updateUserName(shopper);
    }

    @Override
    public List<RunfastShopper> findBuagentid(Integer agentid, Integer teamid) {
        return dao.findBuagentid(agentid, teamid);
    }

    @Override
    public List<RunfastShopper> findagentidAndWordtypeAndWorkingAndName(Integer agentid, Integer worktype, Integer working, String name,Integer page,Integer pagesize,Integer status,String equipment,Integer type) {
        return dao.findagentidAndWordtypeAndWorkingAndName(agentid,worktype,working, name,page,pagesize,status,equipment,type);
    }

    @Override
    public Integer findagentidAndWordtypeAndWorkingAndNamecount(Integer agentid, Integer worktype, Integer working, String name, Integer page, Integer pagesize, Integer status,String equipment) {
        return dao.findagentidAndWordtypeAndWorkingAndNamecount(agentid,worktype,working, name,page,pagesize,status,equipment);
    }

    @Override
    public List<RunfastShopper> findNameAndAgerenAndTime(Integer agentid, String name, Date createtime1, Date createtime2) {
        return dao.findNameAndAgerenAndTime(agentid, name, createtime1, createtime2);
    }


    @Override
    public Integer findagentidAndWordtypeAndWorkingAndNamecount1(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment) {
        return dao.findagentidAndWordtypeAndWorkingAndNamecount1(agentid, worktype, working, name1, page1, pagesize, status, equipment);
    }

    @Override
    public Integer findagentidAndWordtypeAndWorkingAndNamecount2(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment) {
        return dao.findagentidAndWordtypeAndWorkingAndNamecount2(agentid, worktype, working, name1, page1, pagesize, status, equipment);
    }

    @Override
    public Integer findagentidAndWordtypeAndWorkingAndNamecount3(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment) {
        return dao.findagentidAndWordtypeAndWorkingAndNamecount3(agentid, worktype, working, name1, page1, pagesize, status, equipment);
    }

    @Override
    public Integer findagentidAndWordtypeAndWorkingAndNamecount4(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment) {
        return dao.findagentidAndWordtypeAndWorkingAndNamecount4(agentid, worktype, working, name1, page1, pagesize, status, equipment);
    }
}